package com.cn.yds.bdy.dao;

import com.cn.yds.bdy.dao.model.UserModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<UserModel, Integer> {

    UserModel findByLoginIdAndPasswordAndRoleAndStatus(String loginId, String password, Integer role, Integer status);

    UserModel findByLoginId(String loginId);
}
